
function Person(db,models){
	 return db.define("Person", {
        name      : String,
        surname   : String,
        age       : Number, // FLOAT
        male      : Boolean,
        continent : [ "Europe", "America", "Asia", "Africa", "Australia", "Antartica" ], // ENUM type
        photo     : Buffer, // BLOB/BINARY
        data      : Object // JSON encoded
    	})
}


function WenZhang(db,models){
	 return db.define("Wenzhang", {
        "title" :String,
        "content": { type: "text", size: 3000 }, 
        "pub_date": Date,
        "update_time" :Date, 
        "author_id": Number, 
        "biaoqian_table":String,
        "fenlei_id": String,
        "bigfenlei":String,
    	})
}

function bigfenlei(db,models){
	 return db.define("bigfenlei", {
        "title" :String,
        "content": String,
        "pub_date": Date,
    	})
}


function User(db,models){
	 return db.define("User", {
        name      : String,
        mail  : String,
        password  : String
   
    	})
}
function biaoqian(db,models){
     return db.define("biaoqian", {
        "content": String,
        "pub_date": Date,
        })
}

 function smallfenlei(db,models){
     return db.define("smallfenlei", {
       "title" :String,
       "pub_date": Date,
   })
}
exports.smallfenlei = smallfenlei;

exports.biaoqian = biaoqian;
exports.user = User;

exports.person = Person;

exports.WenZhang = WenZhang;
exports.bigfenlei = bigfenlei;